package com.information.manage.basic.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel("用户菜单")
public class UserMenuVO {

    @ApiModelProperty("菜单id")
    private Integer menuId;

    @ApiModelProperty("菜单父id")
    private Integer menuParentId;

    @ApiModelProperty("功能名称")
    private String menuName;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("层级")
    private Integer sequence;

    @ApiModelProperty("是否必选")
    private boolean must;

    @ApiModelProperty("是否隐藏")
    private boolean hide;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("路由")
    private String route;

    @ApiModelProperty("功能类型 0 menu 1 add 2 delete 3 update 4 query")
    private Integer menuType;

    @ApiModelProperty("最后修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("下级菜单")
    private List<UserMenuVO> userMenuVOList;

}
